<template>
  <div v-if="value">
    <p @click="close">modal标签</p>
    <h3>h3标签</h3>
    <slot />
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    close () {
      this.$emit('input')
    }
  }
}
</script>

<style lang="less" scoped>
</style>
